﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Model.LogOnModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户登录</title>
    <link href="/Content/sexybuttons.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui-i18n.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <link href="/Content/Site.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#UserName").focus();
        });
    </script>
</head>
<body style="background: #053772; padding: 0; margin: 0;">
    <div style="width: 1000px; height: 640px; margin: auto; background-image: url(/content/logon2.jpg);
        background-position: center">
        <div style="float: left; color: White; padding: 180px 0 0 140px; line-height: 200%;
            width: 250px; height: 300px">
            <% using (Html.BeginForm())
               { %>
            <%:Html.AntiForgeryToken() %>
            <table>
                <tr>
                    <th style="border: 0; width: 60px">
                        <%= Html.LabelFor(m => m.UserName) %>
                    </th>
                    <td style="border: 0;">
                        <%= Html.TextBoxFor(m => m.UserName) %>
                        <%= Html.ValidationMessageFor(m => m.UserName,"*") %>
                    </td>
                </tr>
                <tr>
                    <th style="border: 0;">
                        <%= Html.LabelFor(m => m.Password) %>
                    </th>
                    <td style="border: 0;">
                        <%= Html.PasswordFor(m => m.Password) %>
                        <%= Html.ValidationMessageFor(m => m.Password,"*") %>
                    </td>
                </tr>
                <tr>
                    <th style="border: 0;">
                        企业
                    </th>
                    <td style="border: 0;">
                        <%if (ViewBag.EnterpriseId != null)
                          {%>
                        <%:Html.Hidden("EnterpriseId")%>
                        <%:ViewBag.EnterpriseName%>
                        <%}
                          else
                          {  %>
                        <%:Html.EditorFor(m=>m.EnterpriseId) %>
                        <%} %>
                    </td>
                </tr>
                <%if (ConfigurationManager.AppSettings["EnableAuthcode"].Equals("true"))
                  {%>
                <tr>
                    <th style="border: 0;">
                        <%= Html.LabelFor(m => m.authcode)%>
                    </th>
                    <td style="border: 0;">
                        <%= Html.TextBoxFor(m => m.authcode, new { size = "4", maxlength = "4", style = "vertical-align:middle;" })%>
                        <img id="ImgValidateCode" alt="看不清？点击换一个" style="vertical-align: middle;" src="<%=Url.Action("SecurityCode")%>"
                            onclick="this.src=this.src+'?'" />
                        <%= Html.ValidationMessageFor(m => m.authcode, "*")%>
                    </td>
                </tr>
                <%}
                  else
                  { %>
                <%:Html.Hidden("authcode","0000")%>
                <%} %>
                <tr>
                    <th style="border: 0;">
                    </th>
                    <td style="border: 0;">
                        <%= Html.CheckBoxFor(m => m.RememberMe)%>
                        <%= Html.LabelFor(m => m.RememberMe) %>
                    </td>
                </tr>
            </table>
            <div style="text-align: center; padding-bottom: 10px;">
                <button type="submit" class="sexybutton sexyyellow">
                    <span><span><span class="ok">登录</span></span></span></button>
                &nbsp;
                <button type="reset" class="sexybutton sexyyellow">
                    <span><span><span class="cancel">重填</span></span></span></button>
            </div>
            <div style="text-align: center; padding-bottom: 10px;">
                系统使用要求：浏览器版本 IE 8.0</div>
            <div>
                <%: Html.ValidationSummary() %></div>
            <% } %>
        </div>
        <div style="float: left; padding: 306px 0 0 130px;">
            <%:DateTime.Now.ToShortDateString() %>
            <%:DateTime.Now.DayOfWeek %>
        </div>
        <div style="width: 830px; margin: auto; line-height: 150%; color: White; clear: both">
            <div style="padding: 0 40px;">
                Copyright © 2007-<%:DateTime.Now.Year %>
                <a href="http://www.ebyshow.net/" target="_blank">EBYSHOW</a> All Right Reserved
                <br />
                天津亿百秀网络科技有限公司 版权所有
            </div>
        </div>
    </div>
</body>
</html>
